package com.unbox.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * <实体类
 * </p>
 *
 * @author 王振宇
 * @since 2021-03-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("unbox_role_menu")
@ApiModel(value = "RoleMenu", description = "")
public class RoleMenu implements Serializable {

    private static final long serialVersionUID = 1L;

   /**
    *
    */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "", name = "id")
    private Integer id;

   /**
    *
    */
    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "", name = "createTime")
    private LocalDateTime createTime;

   /**
    *
    */
    @TableField(value = "menu_id")
    @ApiModelProperty(value = "", name = "menuId")
    private Integer menuId;

   /**
    *
    */
    @TableField(value = "role_id")
    @ApiModelProperty(value = "", name = "roleId")
    private Integer roleId;

}
